home *** CD-ROM | disk | FTP | other *** search
/ Tech Arsenal 1 / Tech Arsenal (Arsenal Computer).ISO / tek-01 / wlib11_2.zip / EXAMPLES.EXE / EXAM47.C < prev    next >
C/C++ Source or Header  |  1991-03-13  |  497b  |  20 lines

  1.   #include "window.h"
  2.   #define NORM   CREATE_VIDEO_ATTRIBUTE(black,white)
  3.  
  4.   WPOINTER w;
  5.  
  6.   main()
  7.   {
  8.     int row,col;
  9.     WindowInitializeSystem();
  10.     WindowSaveInitial(0);
  11.     w = WindowInitialize(BORDER,1,1,40,10,NORM,NORM,SINGLEBOX);
  12.     WindowOpen(w);
  13.     WindowDisplay(w,1,NOEFFECT);
  14.     WindowMoveCursor(w,7,4);
  15.     WindowGetCursorPosition(w,&row,&col);
  16.     WindowPrintf(w,
  17.         "The row of the cursor is %d\nThe column of the cursor is %d",
  18.          row,col);
  19.   }
  20.